package com.nhjf.model.oranizationAccount;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.nhjf.model.BaseModel;
import com.nhjf.model.system.Organization;

@SuppressWarnings("serial")
@Entity
@Table(name = "oranizationAccount")
public class OranizationAccount extends BaseModel{
	/**
	 * 主键ID
	 */
	@Id
	@GeneratedValue(generator = "generator")
	@GenericGenerator(name = "generator", strategy = "native")
	@Column(name = "id", unique = true)
	private Long id;
	
	/**
	 * 机构id
	 */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "organizationId")
	private Organization organization;
	/**
	 * 待结算金额 单位是 ‘分’
	 */
	@Column(name = "pendingSettlementAmount")
	private Integer pendingSettlementAmount;
	/**
	 * 金额 单位是 ‘分’
	 */
	@Column(name = "amount")
	private Integer amount;
	/**
	 * 更新时间
	 */
	@Column(name = "updateTime")
	private Date updateTime;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Organization getOrganization() {
		return organization;
	}
	public void setOrganization(Organization organization) {
		this.organization = organization;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Integer getPendingSettlementAmount() {
		return pendingSettlementAmount;
	}
	public void setPendingSettlementAmount(Integer pendingSettlementAmount) {
		this.pendingSettlementAmount = pendingSettlementAmount;
	}
	public Integer getAmount() {
		return amount;
	}
	public void setAmount(Integer amount) {
		this.amount = amount;
	}
	
}
